@import '../../styles/theme.scss';

.container {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, #f1f5f9 50%, var(--bg-tertiary) 100%);
  padding: var(--spacing-lg);
  position: relative;
  overflow: hidden;

  // 动态背景装饰
  &::before,
  &::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.2;
    animation: float 15s infinite alternate;
    z-index: 0;
  }
  
  &::before {
    width: 500px;
    height: 500px;
    left: -150px;
    top: 10%;
    background: var(--gradient-primary);
    animation-delay: 0s;
  }
  
  &::after {
    width: 300px;
    height: 300px;
    right: -100px;
    bottom: 10%;
    background: var(--gradient-secondary);
    animation-delay: 3s;
  }

  @keyframes float {
    0% {
      transform: translateY(0) scale(1) rotate(0deg);
    }
    100% {
      transform: translateY(50px) scale(1.1) rotate(5deg);
    }
  }
}

.content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 600px;
  background: var(--bg-primary);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-light);
  padding: var(--spacing-2xl);
  backdrop-filter: blur(10px);
}

.illustration {
  position: relative;
  margin-bottom: var(--spacing-2xl);
  
  .number404 {
    font-size: 8rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: var(--spacing-md);
    text-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    animation: bounce 2s infinite ease-in-out;
  }
  
  .astronaut {
    font-size: 4rem;
    display: block;
    animation: float-astronaut 3s infinite ease-in-out;
    filter: drop-shadow(0 4px 20px rgba(99, 102, 241, 0.2));
  }
  
  @keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
      transform: translateY(0);
    }
    40% {
      transform: translateY(-10px);
    }
    60% {
      transform: translateY(-5px);
    }
  }
  
  @keyframes float-astronaut {
    0%, 100% {
      transform: translateY(0) rotate(-5deg);
    }
    50% {
      transform: translateY(-20px) rotate(5deg);
    }
  }
}

.title {
  color: var(--text-primary) !important;
  font-weight: 700 !important;
  font-size: var(--font-size-3xl) !important;
  margin-bottom: var(--spacing-md) !important;
}

.description {
  color: var(--text-secondary) !important;
  font-size: var(--font-size-lg) !important;
  line-height: 1.6;
  margin-bottom: var(--spacing-2xl) !important;
}

.actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  margin-bottom: var(--spacing-2xl);
  flex-wrap: wrap;
}

.primaryButton {
  height: 50px !important;
  padding: 0 var(--spacing-xl) !important;
  border-radius: var(--radius-md) !important;
  background: var(--gradient-primary) !important;
  border: none !important;
  font-weight: 600 !important;
  font-size: var(--font-size-md) !important;
  box-shadow: var(--shadow-md) !important;
  transition: all var(--transition-normal) !important;
  
  &:hover {
    background: var(--gradient-primary) !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: var(--shadow-lg) !important;
  }
}

.secondaryButton {
  height: 50px !important;
  padding: 0 var(--spacing-xl) !important;
  border-radius: var(--radius-md) !important;
  background: var(--bg-primary) !important;
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  font-weight: 600 !important;
  font-size: var(--font-size-md) !important;
  transition: all var(--transition-normal) !important;
  
  &:hover {
    background: var(--primary-color) !important;
    color: var(--text-white) !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: var(--shadow-md) !important;
  }
}

.suggestions {
  border-top: 1px solid var(--border-light);
  padding-top: var(--spacing-lg);
  
  .suggestionsTitle {
    color: var(--text-primary) !important;
    font-weight: 600 !important;
    font-size: var(--font-size-lg) !important;
    margin-bottom: var(--spacing-md) !important;
  }
  
  .suggestionsList {
    list-style: none;
    padding: 0;
    margin: 0;
    
    li {
      padding: var(--spacing-sm) 0;
      color: var(--text-secondary);
      font-size: var(--font-size-md);
      position: relative;
      
      &::before {
        content: '✓';
        color: var(--primary-color);
        font-weight: bold;
        margin-right: var(--spacing-sm);
      }
    }
  }
}

// 响应式设计
@media (max-width: 768px) {
  .container {
    padding: var(--spacing-md);
  }
  
  .content {
    padding: var(--spacing-xl) var(--spacing-md);
  }
  
  .illustration {
    .number404 {
      font-size: 6rem;
    }
    
    .astronaut {
      font-size: 3rem;
    }
  }
  
  .title {
    font-size: var(--font-size-2xl) !important;
  }
  
  .description {
    font-size: var(--font-size-md) !important;
  }
  
  .actions {
    flex-direction: column;
    align-items: center;
    
    .primaryButton,
    .secondaryButton {
      width: 100%;
      max-width: 280px;
    }
  }
}